@echo off
if not "%1"=="" goto oneliner
set /p id="Enter the Knowledge Base ID: "
goto cont
:oneliner
set id=%1
:cont
wmic qfe get hotfixid | find "%id%" > nul && echo KB%id% is installed || echo KB%id% is not installed
if not "%1"=="" goto end
rem If you run this from a command prompt you don't need the pause below
pause
:end
